import request from '../../libs/request';


export function GetcabinetList(params) {
  return request.get('/api/v1/service/', {params});
}


export function GetlockersList(params) {

  return request({url:'/api/v1/locker/lockers',params});
}


export function GetControllers() {
  return request.get('/api/v1/locker/controllers?current=1&pageSize=50');
}


export function GetManagement() {
  return request.get('/api/v1/locker/management-areas?current=1&pageSize=50');
}



export function updateStatus(id,data) {
  return request.put(`/api/v1/locker/lockers/${id}/usage-status`,data);
}


export function RemoteOpenLock(data) {
  return request.post("/api/gslock/yuanchengkaisuo",data);
}


export function ruchangshouquan(data) { 
  return request.post("/api/gslock/ruchangshouquan",data);
}


export function chuchangshouquan(data){
    return request.post("/api/gslock/chuchangshouquan",data);
}


export function suoshekongzhi(data) { 
  return request.post('/api/gslock/suoshekongzhi',data);
}

export function suochongqi(data) {
  return request.post('/api/gslock/suochongqi',data);
}

export function tiaoshi(data) {
  return request.post('/api/gslock/tiaoshi',data);
}


export function wanchengtiaoshi(){

  return request.post('/api/gslock/wanchengtiaoshi');
}

export function buka(data) {
  return request.post('/api/gslock/buka',data);
}




